package com.dealer.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dealer.management.entity.SalesOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

@Mapper
public interface SalesOrderMapper extends BaseMapper<SalesOrder> {
    
    IPage<SalesOrder> selectSalesOrderPage(Page<SalesOrder> page, 
                                            @Param("orderNo") String orderNo,
                                            @Param("customerId") Long customerId,
                                            @Param("startDate") LocalDateTime startDate,
                                            @Param("endDate") LocalDateTime endDate,
                                            @Param("status") Integer status);
}
